<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMerchantMedicineXClassifyTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('merchant_medicine_x_classify', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('merchant_medicine_id') ->default(0)->comment('药品id');
            $table->bigInteger('classify_id') ->default(0)->comment('分类id');
            $table->bigInteger('merchant_id') ->default(0)->comment('店铺id');
            $table->integer('sort') ->default(0)->comment('排序');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
//        Schema::dropIfExists('merchant_medicine_x_classify');
    }
}
